package com.byxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.dao.TipDao;
import com.byxy.entity.Tip;
import com.byxy.service.TipService;
import com.byxy.vo.TipVO;

@Service
@Transactional
public class TipServiceImpl implements TipService {
	
	@Autowired
	private TipDao tipDao;
	
	@Override
	public void add(Tip tip) {
		// TODO Auto-generated method stub
		tipDao.add(tip);
	}

	@Override
	public TipVO findById(Integer tipId) {
		return null;
	}

	@Override
	public void knotTip(Integer tipId) {
		// TODO Auto-generated method stub
		tipDao.knotTip(tipId);
	}

	@Override
	public List<Tip> find() {
		// TODO Auto-generated method stub
		return tipDao.find();
	}

	
}
